package com.tarena.charging.order.pojo.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("charging_bill_fail")
public class BillFailPO {

    @TableId(type = IdType.AUTO)
    private Integer id; // 编号

    @TableField(value = "bill_id")
    private String billId; // 订单号

    @TableField(value = "user_id")
    private Integer userId; // 用户ID

    @TableField(value = "operator_id")
    private Integer operatorId; // 运营商ID

    @TableField(value = "station_id")
    private Integer stationId; // 场站ID

    @TableField(value = "gun_id")
    private Integer gunId; // 设备ID

    @TableField(value = "vehicle_id")
    private Integer vehicleId; // 车辆编号

    @TableField(value = "fail_desc")
    private String failDesc; // 失败描述

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime; // 创建时间

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime; // 更新时间

    @TableField(value = "deleted")
    private Integer deleted; // 是否删除
}